package com.qf.zwy.office.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 审批表单表
 * @author 子未语
 */
@Data
@TableName(value = "approval_category")
public class ApprovalCategory {
    /**
     * 类别id
     */
    @TableId(value = "category_id", type = IdType.INPUT)
    private Integer categoryId;

    /**
     * 类别名称
     */
    @TableField(value = "category_name")
    private String categoryName;

    /**
     * 类别状态，0表示启用，1表示禁用
     */
    @TableField(value = "category_status")
    private Integer categoryStatus;

    /**
     * 类别级别
     */
    @TableField(value = "category_level")
    private Integer categoryLevel;

    /**
     * 审批描述
     */
    @TableField(value = "category_description")
    private String categoryDescription;

    /**
     * 审批人员的id
     */
    @TableField(value = "approval_personnel")
    private String approvalPersonnel;

    /**
     * 申请发起人
     */
    @TableField(value = "application_initiator")
    private String applicationInitiator;

    /**
     * 指向父级分类的ID,0表示为父级分类
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    public static final String COL_CATEGORY_ID = "category_id";

    public static final String COL_CATEGORY_NAME = "category_name";

    public static final String COL_CATEGORY_STATUS = "category_status";

    public static final String COL_CATEGORY_LEVEL = "category_level";

    public static final String COL_CATEGORY_DESCRIPTION = "category_description";

    public static final String COL_APPROVAL_PERSONNEL = "approval_personnel";

    public static final String COL_APPLICATION_INITIATOR = "application_initiator";

    public static final String COL_PARENT_ID = "parent_id";
}